package com.wzy.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.wzy.springboot.domain.Msg;

@Controller
public class HomeController {

	@RequestMapping("/")
	public String index(Model model) {
		Msg msg = new Msg("标题1","内容1","我喜欢wzy，这是个秘密");
		model.addAttribute(msg);
		return "index";
	}
}
